<?php
/**
 * Created by PhpStorm.
 * User: zhangjian37
 * Date: 2016/12/26
 * Time: 18:41
 */

$q = $_GET['q'];
$url='http://v.juhe.cn/dream/query?key=2d2d56966dd17b578368556210b60598&q='.$q;
$html = file_get_contents($url);
echo $html;

//$ch = curl_init();
//$timeout = 5;
//curl_setopt ($ch, CURLOPT_URL, '');
//curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
//$file_contents = curl_exec($ch);
//curl_close($ch);
//
//echo $file_contents;